package org.jeecg.modules.business.takestockplan.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 盘盈盘亏单
 * @Author: jeecg-boot
 * @Date:   2023-08-08
 * @Version: V1.0
 */
@Data
@TableName("wms_take_stock_result")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wms_take_stock_result对象", description="盘点执行-盘盈盘亏单")
public class TakeStockResult implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**单号*/
	@Excel(name = "单号", width = 15)
    @ApiModelProperty(value = "单号")
    private String code;
	/**盘点差异处理单id*/
	@Excel(name = "盘点差异处理单id", width = 15)
    @ApiModelProperty(value = "盘点差异处理单id")
    private String takeStockPlanDifferenceId;
	/**盘点物料id*/
	@Excel(name = "盘点物料id", width = 15)
    @ApiModelProperty(value = "盘点物料id")
    private String takeStockPlanDifferenceMaterialId;
	/**关联入库单*/
	@Excel(name = "关联入库单", width = 15)
    @ApiModelProperty(value = "关联入库单")
    private String wmsInReceiptId;
	/**关联出库单*/
	@Excel(name = "关联出库单", width = 15)
    @ApiModelProperty(value = "关联出库单")
    private String wmsOutReceiptId;
	/**类型*/
	@Excel(name = "类型", width = 15)
    @ApiModelProperty(value = "类型,1 盘盈单,2 盘亏单")
    private String type;
    /**单据状态*/
    @Excel(name = "单据状态", width = 15)
    @ApiModelProperty(value = "单据状态")
    @Dict(dicCode = "take_stock_plan_status")
    private String documentStatus;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
	/**逻辑删除*/
	@Excel(name = "逻辑删除", width = 15)
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer delFlag;

    /**盘点日期*/
    @TableField(exist = false)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "盘点日期")
    private Date executeDate;
    /**组织*/
    @ApiModelProperty(value = "组织")
    private String organization;
    /**是否盘盈盘亏入库,0 未入库, 1 已入库*/
    @ApiModelProperty(value = "是否盘盈盘亏入库,0 未入库, 1 已入库")
    private String generateFlag;
}
